cmake_minimum_required(VERSION 3.0.0)
project(QWidgetVTKProject)
include(module.cmake)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
#-------------------------------------------------------------------------------------------
add_subdirectory(MainFrame)
add_subdirectory(NormalPlugin/PluginManager)
add_subdirectory(QTPlugin/databaseplugin)
add_subdirectory(QTPlugin/logplugin)
add_subdirectory(QTPlugin/OperatorDockerPlugin)
add_subdirectory(QDesignerPlugin/ColorComboxForDesignerPlugin)
add_subdirectory(QDesignerPlugin/QtDesignerWidgetUser)
#-------------------------------------------------------------------------------------------
set_target_properties(PluginManager PROPERTIES FOLDER NormalPlugin)
set_target_properties(databaseplugin PROPERTIES FOLDER QTPlugin)
set_target_properties(logplugin PROPERTIES FOLDER QTPlugin)
set_target_properties(OperatorDockerPlugin PROPERTIES FOLDER QTPlugin)

set_target_properties(ColorComboxForDesignerPlugin PROPERTIES FOLDER QDesignerPlugin)
set_target_properties(QtDesignerWidgetUser PROPERTIES FOLDER QDesignerPlugin)

# set_target_properties(MThreads PROPERTIES FOLDER QTMstudy)
#------------------------------------------------------------------------------------------
IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
	IF(PLATFORM MATCHES x64)
		#add_subdirectory(CoreRunTime)
	ENDIF()
ENDIF()
##RubberBand 依赖于CoreRunTime#add_dependencies(RubberBand CoreRunTime)


IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
	#set(MainDependency RubberBand)
	#IF(PLATFORM MATCHES x64)
	#	set(MainDependency RubberBand)
	#ELSEIF(PLATFORM MATCHES x32)
	#	set(MainDependency RubberBand)
	#ENDIF()
ENDIF()

IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
	#set(MainDependency RubberBand)
	#IF(PLATFORM MATCHES x64)
	#	set(MainDependency RubberBand)
	#ELSEIF(PLATFORM MATCHES x32)
	#	set(MainDependency RubberBand)
	#ENDIF()
ENDIF()
##添加多依赖(编译时的依赖)
set(maindep PluginManager)
add_dependencies(MainFrame ${maindep})
#sadd_dependencies(PluginManager databaseplugin logplugin OperatorDockerPlugin)
##给该项目添加文件夹属性:RubberBand项目处于Simple文件夹管理之下
##set_target_properties(RubberBand PROPERTIES FOLDER Simple/map) 支持填充路径Simple/map



